/**
 * @UiResource.hpp
 * Copyright 2013 (C) FatalEror / Dean Bahari
 * 
 * UiPack is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * See LICENSE file in main folder for more information.
 */

#ifndef _UI_RESOURCE_HPP_
#define _UI_RESOURCE_HPP_

class UiResource {
	Gdiplus::Image        *iSysTitle;
	Gdiplus::Image        *iSysNormal;
	Gdiplus::Image        *iSysHover;
	Gdiplus::Image        *iSysClick;
	Gdiplus::Image        *iBtnNormal;
	Gdiplus::Image        *iBtnHover;
	Gdiplus::Image        *iBtnClick;
	Gdiplus::Image        *iMBIHover;
	Gdiplus::Image        *iMBIClick;
	Gdiplus::Image        *iToolTitle;
	Gdiplus::Image        *iToolClose;
	Gdiplus::Image        *iToolDetach;
	Gdiplus::SolidBrush   *bBackground;
	Gdiplus::SolidBrush   *bBorder;
	Gdiplus::SolidBrush   *bText;
	Gdiplus::SolidBrush   *bToolWin;
	Gdiplus::SolidBrush   *bTooltip;
	Gdiplus::SolidBrush   *bMenubar;
	Gdiplus::SolidBrush   *bBlank;
	Gdiplus::Pen          *pBorder;
	Gdiplus::Pen          *pText;
	Gdiplus::FontFamily   *fText;
public:
	UiResource();
	~UiResource();

	Gdiplus::Image      *getImage(int type);
	Gdiplus::Brush      *getBrush(int type);
	Gdiplus::Pen        *getPen(int type);
	Gdiplus::FontFamily *getFont();

	enum Type {
		UI_IMAGE_SYS_TITLEBAR,
		UI_IMAGE_SYS_NORMAL,
		UI_IMAGE_SYS_HOVER,
		UI_IMAGE_SYS_CLICK,
		UI_IMAGE_BTN_NORMAL,
		UI_IMAGE_BTN_HOVER,
		UI_IMAGE_BTN_CLICK,
		UI_IMAGE_MENUBARITEM_HOVER,
		UI_IMAGE_MENUBARITEM_CLICK,
		UI_IMAGE_TOOL_TITLE,
		UI_IMAGE_TOOL_CLOSE,
		UI_IMAGE_TOOL_DETACH,
		UI_BRUSH_BACKGROUND,
		UI_BRUSH_BORDER,
		UI_BRUSH_TEXT,
		UI_BRUSH_BLANK,
		UI_BRUSH_TOOLWINDOW,
		UI_BRUSH_TOOLTIP,
		UI_PEN_TEXT,
		UI_PEN_BORDER,
	};

	static Gdiplus::Image *loadImage(const wchar_t *imgName);
};

#endif//_UI_RESOURCE_HPP_